package com.hdax.dm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdax.dm.entity.item.ItemType;
import com.hdax.dm.mapper.item.ItemTypeMapper;
import com.hdax.dm.service.ItemService;
import com.hdax.dm.service.ItemTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemTypeServiceImpl extends ServiceImpl<ItemTypeMapper, ItemType> implements ItemTypeService {


    @Override
    public List<ItemType> levelOne(Long parent) {
        List<ItemType> levelOneList = baseMapper.levelOne(parent);
        return levelOneList;
    }

    @Override
    public List<ItemType> lineNav() {
        return baseMapper.lineNav();
    }

    @Override
    public List<ItemType> floor() {
        List<ItemType> floor = baseMapper.floor();
        return floor;
    }
}
